package TestObjects;

import GameObjects.Instances.Instances;
import GameObjects.Physics.Position;
import GameObjects.Ships.Ship;
import GameObjects.Ships.Sheilds.Sheilds;
import GameObjects.Ships.Weapon.Weapon;
import GameObjects.Ships.Weapon.Bullets.Bullet;

public class TestSheild extends Sheilds 
{
	public TestSheild(Instances instances, Position position, double maxEnergyLevel, double energyPerSheild) 
	{
		super(instances, position, maxEnergyLevel, energyPerSheild, 3000);
	}

	@Override
	protected void collided(Ship other) 
	{
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void collided(Bullet bullet) 
	{
		if(bullet instanceof BulletTest)
		{
//			System.out.println(this.health +" "+ bullet.Damage());
			damage(bullet.Damage());
			bullet.setToRemove();
		}
	}

	@Override
	protected void collided(Weapon other) 
	{
		// TODO Auto-generated method stub
		
	}
}
